<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
     data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="exampleModalLabel">新增菜单/资源</h4>
            </div>
            <form action="/permission/user/create" class="form-horizontal" id="editForm">
            <div class="modal-body">
                <input type="hidden" name="id"/>
                <input type="hidden" name="roleIds"/>
                <div class="form-horizontal">
                    <div class="panel panel-default">
                        <input type="hidden" name="id"/>
                        <input type="hidden" name="pid"/>
                        <div class="form-group form-md-line-input">
                            <label class="col-md-4 control-label">名称：</label>
                            <div class="col-md-8">
                                <input type="text" class="form-control" name="name" placeholder="Resource Name"/>
                                <div class="form-control-focus">
                                    <span class="help-block"></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group form-md-line-input">
                            <label class="col-md-4 control-label">图标：</label>
                            <div class="col-md-8">
                                <input type="text" class="form-control" name="icon" placeholder="Icon"/>
                                <div class="form-control-focus">
                                    <span class="help-block"></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group form-md-line-input">
                            <label class="col-md-4 control-label">排序：</label>
                            <div class="col-md-8">
                                <input type="text" class="form-control" name="seq" placeholder="Seq"/>
                                <div class="form-control-focus">
                                    <span class="help-block"></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group form-md-line-input">
                            <label class="col-md-4 control-label">类型：</label>
                            <div class="col-md-8">
                                <div class="radio">
                                    <#list resourceType as type>
                                        <input id="type-${type.getCode()}" class="magic-radio" type="radio"
                                               name="type"  value="${type.getCode()}">
                                        <label for="type-${type.getCode()}">${type.getName()}</label>
                                    </#list>
                                </div>
                                <div class="form-control-focus">
                                    <span class="help-block"></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group form-md-line-input">
                            <label class="col-md-4 control-label">URL：</label>
                            <div class="col-md-8">
                                <textarea class="form-control" cols="5" id="resourceUrl" name="url"
                                          placeholder="Url"></textarea>
                                <div class="form-control-focus">
                                    <span class="help-block"></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group form-md-line-input">
                            <label class="col-md-4 control-label">描述：</label>
                            <div class="col-md-8">
                                <textarea class="form-control" cols="5" name="desc" id="description"
                                          placeholder="Description"></textarea>
                                <div class="form-control-focus">
                                    <span class="help-block"></span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="submit" class="btn btn-primary">提交</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
            </form>
        </div>
    </div>
</div>